<template>
  <view >
    <view class="top_stat">
      <AtGrid :data=dataList :onClick="goTo"/>
    </view>
  </view>
</template>
<script>
import Taro from '@tarojs/taro'
export default {
  name: 'user',
  data(){
    return{
      dataList:[
        {
          image: 'https://img12.360buyimg.com/jdphoto/s72x72_jfs/t6160/14/2008729947/2754/7d512a86/595c3aeeNa89ddf71.png',
          value: '油品类别',
          path: "oilType/oilType"
        },
        {
          image: 'https://img20.360buyimg.com/jdphoto/s72x72_jfs/t15151/308/1012305375/2300/536ee6ef/5a411466N040a074b.png',
          value: '油品列表',
          path: "oilType/oilType"
        },
        {
          image: 'https://img10.360buyimg.com/jdphoto/s72x72_jfs/t5872/209/5240187906/2872/8fa98cd/595c3b2aN4155b931.png',
          value: '油枪管理',
          path: "oilType/oilType"
        },
      ],
    }
  },
  methods: {
    changeContent(a){
      console.log("数据", a);
    },
    goTo(item){
      Taro.navigateTo({
        url: item.path
      })
    },
    // slideButtonTap(e) {
    //     console.log('slide button tap', e.detail)
    // }
  }
}

</script>
